package com.woniu.repaircenter.models.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "驳回维修工单表单")
public class UpdateRejectRepairForm {

    /**
     * 维修编号
     */
    @ApiModelProperty("维修编号")
    @NotBlank(message = "维修编号不能为空")
    @Size(min=19,max = 19, message = "维修编号应为19位")
    private String repairNum;

    /**
     * 备注描述
     */
    @ApiModelProperty("备注描述")
    @NotBlank(message = "备注描述不能为空")
    @Size(min = 1,max = 20, message = "备注描述长度不能超过20")
    private String description;

}
